package com.tyk.bookstore.back.system.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

@Mapper
public interface UserRoleRepository {

    void insertBatchUserRole(@Param("userId") Long id, @Param("roleIdSet") Set<Long> roleIdSet);

    void deleteByUserId(@Param("userId") Long id);

    void deleteByRoleId(@Param("roleId") Long id);
}
